<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<form action="">
    {% csrf_token %}
    <table border="1" align="center">
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>年级</th>
            <th>专业</th>
            <td>头像</td>
        </tr>
{#        {% for i in data %}#}
        <tr>
            <td>{{ data.stu_name }}</td>
            <td>{{ data.sex }}</td>
            <td>{{ data.classS }}</td>
            <td>{{ data.specialized }}</td>
            <td>{{ data.img_path }}</td>
        </tr>
{#        {% endfor %}#}
    </table>
</form>

</body>
</html>